package hankz.spring.context;

import hankz.spring.context.event.ApplicationEvent;

import java.util.EventListener;

/**
 * @auther zzc
 * @date 2021 11 27
 * <p>
 * 继承标记接口 EventListener
 */
public interface ApplicationListener<E extends ApplicationEvent> extends EventListener {


    /**
     * Handle an application event.
     * <p>
     * 由业务调用 执行事件
     *
     * @param event
     */
    void onApplicationEvent(E event);
}
